package cn.csc.module.pay.api.card;

import cn.csc.framework.common.pojo.CommonResult;
import cn.csc.module.pay.api.card.dto.PayCardRespDTO;
import cn.csc.module.pay.service.card.PayCardService;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 资金账户身份认证 API 接口
 * @author liuchuang
 * @version 1.0
 * @date 2024/1/23 11:40
 * @modify
 */
@RestController // 提供 RESTful API 接口，给 Feign 调用
@Validated
public class PayCardApiImpl implements PayCardApi{

    @Resource
    private PayCardService payCardService;

    @Override
    public CommonResult<PayCardRespDTO> getCardInfo(String memberGlobalId) {
        return CommonResult.success(payCardService.getCardInfo(memberGlobalId));
    }




}
